home *** CD-ROM | disk | FTP | other *** search
- Path: newsstand.cit.cornell.edu!globetrot
- From: wo10@cornell.edu (Warren Ouyang)
- Newsgroups: comp.lang.c++
- Subject: re: readthis (question on character pointer and strings)
- Date: 31 Jan 1996 13:10:32 GMT
- Organization: Cornell University
- Sender: wo10@cornell.edu (Verified)
- Message-ID: <4enpo8$t02@newsstand.cit.cornell.edu>
- References: <4em5fs$a86@ixnews4.ix.netcom.com> <DM1KIt.3Jx.0.-s@cs.vu.nl>
- NNTP-Posting-Host: j320111232.resnet.cornell.edu
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
-
- >but, then again, that's probably not what you want. How about:
- >char* dos;
- >// now do some things, especially assigning dos to a string
- >if (strcmp(dos,"dir")==0)
- > goto b;
-
- I was just wondering... if you declare char* dos; does it allocate any room to
- store a string into the memory position that "dos" points to?
-
- Warren
-